home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Transportation
/
InventorLabs - Transportation.iso
/
mac
/
Builders
/
media
/
netacess
/
hminet.dir
/
00021_Script_21
< prev
next >
Wrap
Text File
|
1997-04-04
|
2KB
|
64 lines
on exitFrame
global WebBrowser
put the text of cast "myName" into myScreenName
put the text of cast "myPassword" into myPassword
set URL to the text of cast "theURL"
if the machineType = 256 then
WebBrowser(mOpenURL, URL, myScreenName, myPassword)
else
--
-- Mac Browser AOL Launch sequence
--
put 0 into userCancel
put 0 into softCancel
--
-- verify that AOL is being used
--
-- each of the AOLxxxx XFNC methods returns an OSErr
-- if you get noErr (0), then it's the equivalent of boolean true
-- for instance: AOLChosen = 0 means AOL is the chosen browser
put Browser( "AOLChosen" ) into myStatusErr
if myStatusErr = 0 then
-- AOL has been chosen
--
--
-- Check to see if AOL is online
--
if Browser( "AOLOnline" ) <> 0 then
-- the user has not already logged on
put "AOL is not Online" into cast "status"
-- so they are registered and not online, connect for them
put Browser( "AOLSignon", myScreenName, myPassword ) into myError
if myError <> 0 then
-- an error occured, so display an error message
Browser( "DisplayError", myError )
end if
end if
else
-- we shouldn't be here
go to "Start"
end if
end if
end